package com.ply.flashsalessystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ply.flashsalessystem.entity.pojo.Store;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ply.flashsalessystem.entity.result.Result;
import com.ply.flashsalessystem.entity.vo.UserAmountVo;
import com.ply.flashsalessystem.entity.vo.store.StoreVo;
import com.ply.flashsalessystem.entity.wrapper.StoreAmountWrapper;
import com.ply.flashsalessystem.entity.wrapper.StoreWrapper;
import com.ply.flashsalessystem.entity.wrapper.WrapperOrder;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author XiaoPan
 * @since 2022-03-23
 */
public interface StoreService extends IService<Store> {


    boolean updateStoreDynamic(Store store);

    boolean toCash(Store store,Double money);

    boolean storeIsConfirmationOfReceipt(List<Integer> orderId);

    /**
     * 查看 商家列表
     * @param current 当前页
     * @param limit 每页的个数
     * @param storeWrapper 条件
     * @return
     */
    Page<StoreVo> getStoreList(Integer current,Integer limit, StoreWrapper storeWrapper);

    boolean InvitedUserGetAmount(long storeId);

    void commission(Long storeId, double v);

}
